package org.we.kiwi.domain;

import org.springframework.data.jpa.domain.AbstractPersistable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by yangrd on 2017/11/10
 **/
@Entity
@Table(name = "t_user")
public class User extends AbstractPersistable<Long> {

    @Column(nullable = false, unique = true)
    private String loginName;

    private String password;

    public String getLoginName() {
        return loginName;
    }

    public User setLoginName(String loginName) {
        this.loginName = loginName;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }
}
